package cn.cdeden.knowledge.domain.dto;

//import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.antlr.v4.runtime.misc.MultiMap;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName : dms_be_2024
 * @Package : com.cdyd.ecm.core.dao
 * @ClassName : ProRoleToTeamRole
 * @Author : Yu.
 * @Description : // 项目 角色拥有 团队角色
 * @Date : 2024/7/5 15:04
 * @Version : 1.0
 */
@Data
@Builder
public class ProRoleToTeamRole implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "项目角色编号")
    private String proRoleId;

//    @ApiModelProperty(value = "权限标识")
    private String params;

//    @ApiModelProperty(value = "icon图标")
    private String icon;

//    @ApiModelProperty(value = "icon颜色")
    private String iconColor;

//    @ApiModelProperty(value = "角色描述")
    private String remark;

//    @ApiModelProperty(value = "角色默认值")
    private boolean roleDefault = false ;

//    @ApiModelProperty(value = "权重（1-10，由小到大，等级变低）")
    private Integer rank;

//    @ApiModelProperty(value = "角色名称")
    private String roleName;

//    @ApiModelProperty(value = "添加的角色对象(类型为key，类型值为value)")
    private MultiMap<Integer,Long> objects;

//    @ApiModelProperty(value = "在团队的编号")
    private Long teamRoleId;


    public void setObjects( Integer type, List<Long> list) {
        MultiMap<Integer, Long> objects = new MultiMap<>();
        objects.put(type, list);
        this.objects = objects;
    }
}
